package Equipment;

import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

import Components.GameWindow;

/** 
 * Klasa implementujaca bron - plaster
 * @author Maciej Graszek
 * @author Pawe� Rych�y
 *
 */
public class Helper extends Weapon{
	
	public Helper() {
		super(DIR + "helper.png",DIR + "helper_DOWN.png",0, 0);
	}
	
	@Override
	public void method(GameWindow GW){		
		
		if(this.getAmount() > 0) {
			this.decreaseAmount();
			System.out.println("Wszedlem");
			int line = GW.getTetrisPlayground().getMyTetris().
			getGame().getPlayfield().sizey() - 1;
			//GW.getTetrisPlayground().getMyTetris().getGame().deleteLine(line);
			
		}
		
	}

}
